function Utils() {
}

Utils.isDefined = function (value) {
	return typeof(value)!="undefined"&&value!=null;
}

Utils.buildQueryString = function (url, params) {
    if (!Utils.isDefined(url)) throw new CoreIMSEEException("Url should be defined");
    if (!Utils.isDefined(params)) return url;
    url+=url.endsWith('?')?"":"?";
	url+=params.toQueryString();
	return url;
}

/*
//--Global helper methods --
function getForm(id){
	if (!id){
		return null;
	}
	return document.getElementById(id);
}

function getFormValue(id){
	var form=getForm(id);
	if (!form){
		throw new CoreIMSEEException(String.format("No element with id=\"{0}\" was found.", id));
	}
	return form.value;
}

function setFormValue(id, value){
	var form=getForm(id);
	if (!form){
		throw new CoreIMSEEException(String.format("No element with id=\"{0}\" was found.", id));
	}
	form.value=value;
}
*/
